package thread.joinpackage;

/**
 * Created by cuihao on 2017/12/10.
 */
public class MainTest {
    public static void main(String[] args) {
        try {
            MyThread myThread = new MyThread();
            myThread.start();
            System.out.println(Thread.currentThread().getName());
            myThread.join();
            Thread.sleep(200);
            System.out.println("我想在mythread之后执行,我做到了");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}
